import {selector} from "recoil";
import {text} from "../atoms";



const getTextLengthAndToUpper = selector({
    key: 'getTextLengthAndToUpper',
    get: ({get}) => {
        const txt = get(text);

        return {
            length: txt.length,
            upper: txt.toUpperCase()
        }
    }
})

export {
    getTextLengthAndToUpper
}